import request from '@/utils/request.js'
import {mappingAdress } from '@/utils/util.js'

// 产品列表
export const queryAllTypeAndNameList = data => request.get(mappingAdress.get('/weChat/production/queryAllTypeAndNameList'), data) 

// 产品详情
export const queryByCondition = data => request.post(mappingAdress.get('/weChat/production/queryByCondition'), data) 


// 方案列表
export const querySolutionList = data => request.post(mappingAdress.get('/weChat/solution/querySolutionList'), data) 

// 方案详情
export const querySolution = data => request.post(mappingAdress.get(`/weChat/solution/querySolution`), data) 


// 添加分享
export const insertShare = data => request.post(mappingAdress.get('/weChat/share/insertShare'), data) 

// 我的分享
export const queryMyShareList = data => request.post(mappingAdress.get('/weChat/share/queryMyShareList'), data) 


// 添加收藏
export const insertFavorite = data => request.post(mappingAdress.get('/weChat/favorite/insertFavorite'), data) 

// 取消收藏
export const canalFavorite = data => request.post(mappingAdress.get('/weChat/favorite/canalFavorite'), data) 

// 我的收藏
export const queryMyFavoriteList = data => request.post(mappingAdress.get('/weChat/favorite/queryMyFavorite'), data) 

// 是否收藏
export const whetherFavorite = data => request.post(mappingAdress.get('/weChat/favorite/whetherFavorite'), data) 


// 新增意向登记
export const insertRegistration = data => request.post(mappingAdress.get('/weChat/registration/insertRegistration'), data) 


// 通过shareid 找id
export const queryById = data => request.post(mappingAdress.get('/weChat/share/queryById'), data) 
